<template>
  <layout>
        <div class="content">
    <el-row :gutter="20">
      <el-col :span="10" >
        <div >
          <el-statistic
          
            group-separator=","
            :precision="0"
            :value="list.total"
            title="证书总数量"
          ></el-statistic>
        </div>
      </el-col>
      <el-col :span="10">
        <div >
            <el-statistic
            :value="list.pages"
            title="总页数"
          ></el-statistic>
        </div>
      </el-col>
  

    </el-row>
  </div>
</layout>
</template>
<script>
import axios from "axios";
import Layout from "@/components/Layout.vue"
export default{
  data(){
    return{
      list:[],
      limit:10,
      page:1
    }
  },
  components:{
    Layout
  },
  created(){
    axios({
      url:"http://43.143.166.235:8090/chaxun/home?page="+this.page+"&limit="+this.limit
    }).then(res=>{
      console.log(res.data.data)
      this.list=res.data.data
    })
  }
}
</script>
<style>


</style>